#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PECL_NAME:=redis
PECL_LONGNAME:=PHP extension for interfacing with Redis

PKG_VERSION:=6.2.0
PKG_RELEASE:=1
PKG_HASH:=5069c13dd22bd9e494bb246891052cb6cc0fc9a1b45c6a572a8be61773101363

PKG_NAME:=php8_4_lede-pecl-redis
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://pecl.php.net/get/

PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>

PKG_LICENSE:=PHP-3.01
PKG_LICENSE_FILES:=COPYING

PKG_BUILD_DIR:=$(BUILD_DIR)/pecl-php8_4/$(PECL_NAME)-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
include ../php8_4_lede/pecl.mk

CONFIGURE_ARGS+= \
	--enable-redis \
	--enable-redis-json \
	--enable-redis-igbinary \
	--enable-redis-lzf \
	--enable-redis-msgpack

$(eval $(call PHP8_4_LEDE_PECLPackage,$(PECL_NAME),$(PECL_LONGNAME),+php8_4_lede +php8_4_lede-pecl-igbinary +php8_4_lede-pecl-msgpack,30))
$(eval $(call BuildPackage,$(PKG_NAME)))
